﻿@{
    ViewBag.Title = "register";
    ViewBag.Description = "";
    ViewBag.Keywords = "";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section script{
    <link type="text/css" href="/content/css/style.css" rel="stylesheet" media="all" />
    <script src="/scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/scripts/plug.js"></script>
    <script type="text/javascript">
        $(function () {
            new plug.AValidator().BuildValidate('registerform');
        });
    </script>
}
<div class="content">
    <div class="content-left">
        <div class="content-close">
            <img src="/content/images/btn-img.jpg" /></div>
        <div class="content-img">
            <a href="info-1.html">
                <img src="/content/images/img-l.jpg" /></a></div>
    </div>
    <div class="content-right">
        <div class="content-img">
            <a href="info-1.html">
                <img src="/content/images/img-r.gif" /></a></div>
        <div class="content-close">
            <img src="/content/images/btn-img.jpg" /></div>
    </div>
    <div class="content-center">
        <div class="contents">
            <div class="contents-t">
                <div class="contents-tital">
                    用户注册</div>
                <div class="contents-info">
                    欢迎您注册成为同城交友会员，同城交友请记住www.duo500.com!</div>
            </div>
            <div class="contents-c">
                <div class="regist">
                    <div class="regist-t">
                        <span>已有账号？</span><a href="/account/login">马上登录</a></div>
                    <div class="regist-form">
                        <form id="registerform" action="/account/register" method="post">
                        <div style="color:Red; width:180px; padding-left:50px;" id="errormsg"></div>
                        <div class="data">
                            <span>用户名：</span>
                            <input class="data-input" type="text" name="username" av="{x:'$email',ajax:'$username',t:'errormsg',m:'请输入正确的email作为用户名'}" /><label>请输入电子邮箱</label></div>
                        <div class="data">
                            <span>昵称：</span>
                            <input class="data-input" type="text" name="nickname" av="{x:':\\w+',t:'errormsg',m:'请输入昵称'}" /><label>请输入昵称</label></div>
                        <div class="data">
                            <span>密码：</span>
                            <input class="data-input" type="password" id="txtpwd" name="password" av="{x:':\\w{6,12}',t:'errormsg',m:'请输入6-12位密码'}" /><label>输入密码</label></div>
                        <div class="data">
                            <span>确认密码：</span>
                            <input class="data-input" type="password" name="confirm" av="{x:'=txtpwd',t:'errormsg',m:'密码输入不一致'}"/><label>再次输入</label></div>
                        <div class="data">
                            <span>性别：</span>
                            <input name="sex" type="radio" checked="checked" value="0" />男<input name="sex" type="radio" value="1" />女</div>
                        <div class="data">
                            <span>地区：</span>
                            <div class="sel">
                                <input type="text" class="select" name="area" value="0" />
                                <div class="selects">
                                    <div>
                                        北京市</div>
                                    <div>
                                        广州市</div>
                                    <div>
                                        深圳市</div>
                                    <div>
                                        成都市</div>
                                    <div>
                                        重庆市</div>
                                </div>
                            </div>
                            <div class="sel">
                                <input type="text" class="select" name="role" value="0" />
                                <div class="selects">
                                    <div>
                                        学生</div>
                                    <div>
                                        公司职员</div>
                                    <div>
                                        渝北区</div>
                                    <div>
                                        巴南区</div>
                                    <div>
                                        南岸区</div>
                                </div>
                            </div>
                        </div>
                        <div class="data">
                            <span>生日：</span><input class="data-input" type="text" name="birthday"  av="{x:'$date',t:'errormsg',m:'请输入生日，例：1990-01-01'}" /><label>出生日期</label></div>
                        <div class="data-sub">
                            <input style="width: 150px; height: 35px; line-height: 35px; font-size: 22px; font-weight: bold;"
                                type="submit" value="马上注册" /></div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</div>
